import request from '@/utils/request'

export function insert(data) {
    return request({
        url: '/api/server/dictionaryInfo/insert',
        method: 'post',
        data
    })
}

export function queryByPage(data) {
    return request({
        url: '/api/server/dictionaryInfo/queryByPage',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/api/server/dictionaryInfo/update',
        method: 'post',
        data
    })
}

export function deleteById(params) {
    return request({
        url: '/api/server/dictionaryInfo/deleteById',
        method: 'get',
        params
    })
}

export function insertDictionary(data) {
    return request({
        url: '/api/server/dictionaryItem/insert',
        method: 'post',
        data
    })
}

export function queryDictionary(data) {
    return request({
        url: '/api/server/dictionaryItem/queryByPage',
        method: 'post',
        data
    })
}

export function updateDictionary(data) {
    return request({
        url: '/api/server/dictionaryItem/update',
        method: 'post',
        data
    })
}

export function deleteDictionary(params) {
    return request({
        url: '/api/server/dictionaryItem/deleteById',
        method: 'get',
        params
    })
}